package com.borrowed.book.book.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName s_expect_book
 */
public class SExpectBook implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 书名
     */
    private String bookName;

    /**
     * 系列名
     */
    private String bookSeriesName;

    /**
     * 作者名称
     */
    private String authName;

    /**
     * 出版社
     */
    private String press;

    /**
     * 期待书单状态;expectBookStatus1:待处理  2：已采购  3：不适用
     */
    private String bookStatus;

    /**
     * 为了方便快捷链接到图书一览搜索类似图书预留字段
     */
    private String linkUrl;

    /**
     * 微信用户ID
     */
    private String openId;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 书名
     */
    public String getBookName() {
        return bookName;
    }

    /**
     * 书名
     */
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    /**
     * 系列名
     */
    public String getBookSeriesName() {
        return bookSeriesName;
    }

    /**
     * 系列名
     */
    public void setBookSeriesName(String bookSeriesName) {
        this.bookSeriesName = bookSeriesName;
    }

    /**
     * 作者名称
     */
    public String getAuthName() {
        return authName;
    }

    /**
     * 作者名称
     */
    public void setAuthName(String authName) {
        this.authName = authName;
    }

    /**
     * 出版社
     */
    public String getPress() {
        return press;
    }

    /**
     * 出版社
     */
    public void setPress(String press) {
        this.press = press;
    }

    /**
     * 期待书单状态;expectBookStatus1:待处理  2：已采购  3：不适用
     */
    public String getBookStatus() {
        return bookStatus;
    }

    /**
     * 期待书单状态;expectBookStatus1:待处理  2：已采购  3：不适用
     */
    public void setBookStatus(String bookStatus) {
        this.bookStatus = bookStatus;
    }

    /**
     * 为了方便快捷链接到图书一览搜索类似图书预留字段
     */
    public String getLinkUrl() {
        return linkUrl;
    }

    /**
     * 为了方便快捷链接到图书一览搜索类似图书预留字段
     */
    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    /**
     * 微信用户ID
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 微信用户ID
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SExpectBook other = (SExpectBook) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBookName() == null ? other.getBookName() == null : this.getBookName().equals(other.getBookName()))
            && (this.getBookSeriesName() == null ? other.getBookSeriesName() == null : this.getBookSeriesName().equals(other.getBookSeriesName()))
            && (this.getAuthName() == null ? other.getAuthName() == null : this.getAuthName().equals(other.getAuthName()))
            && (this.getPress() == null ? other.getPress() == null : this.getPress().equals(other.getPress()))
            && (this.getBookStatus() == null ? other.getBookStatus() == null : this.getBookStatus().equals(other.getBookStatus()))
            && (this.getLinkUrl() == null ? other.getLinkUrl() == null : this.getLinkUrl().equals(other.getLinkUrl()))
            && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBookName() == null) ? 0 : getBookName().hashCode());
        result = prime * result + ((getBookSeriesName() == null) ? 0 : getBookSeriesName().hashCode());
        result = prime * result + ((getAuthName() == null) ? 0 : getAuthName().hashCode());
        result = prime * result + ((getPress() == null) ? 0 : getPress().hashCode());
        result = prime * result + ((getBookStatus() == null) ? 0 : getBookStatus().hashCode());
        result = prime * result + ((getLinkUrl() == null) ? 0 : getLinkUrl().hashCode());
        result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bookName=").append(bookName);
        sb.append(", bookSeriesName=").append(bookSeriesName);
        sb.append(", authName=").append(authName);
        sb.append(", press=").append(press);
        sb.append(", bookStatus=").append(bookStatus);
        sb.append(", linkUrl=").append(linkUrl);
        sb.append(", openId=").append(openId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}